const express = require('express')
const apiRouter = require('../router/index.js')


const app = express()
app.use('./api', apiRouter)
app.listen(8888, function () {   
    console.log('server is running at http://127.0.0.1:8888') 
})

module.exports = app
